package com.sh.舱壁模式;

public class Resource {
    public void performOperation() {
        System.out.println("操作数据库");
        try {
            Thread.sleep(2000);
        } catch (InterruptedException e) {
            Thread.currentThread().interrupt();
        }
    }
}